﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" EnableEventValidation="false"
    CodeFile="EditBaoMing.aspx.cs" Inherits="EditBaoMing" Title="修改报名表" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="contenter">
        <div class="content sub-m-l">
            <div class="area">
                <div class="c-top">
                </div>
                <div class="sub-nav">
                    <div class="s-t">
                        <h2>
                            会员中心</h2>
                        <h4>
                            Member Center</h4>
                    </div>
                    <div class="s-b">
                        <ul>
                            <asp:Literal ID="litMenuLinks" runat="server"></asp:Literal>
                        </ul>
                    </div>
                    <div class="s-f">
                    </div>
                </div>
                <div class="main-con">
                    <div class="n-m-t">
                        <div class="n-m-tl">
                        </div>
                    </div>
                    <div class="main-body">
                        <div class="site">
                            <div class="si-ti">
                                <h3>
                                    <asp:Label ID="lblSubTitle" runat="server"></asp:Label></h3>
                            </div>
                            当前位置：> <a href="Default.aspx">网站首页</a> &gt; <a href="MemberCenter.aspx">会员中心</a>
                            &gt; 编辑报名表</div>
                        <div class="main-text" style="min-height: 230px;">
                            <!------------------------------编辑内容区域---------------------------------------------->
                            <div style="height: 1px;">
                                &nbsp;</div>
                            <table width="98%" border="0" cellspacing="0" cellpadding="0" class="sign_tbl">
                                <tr>
                                    <td colspan="9" style="text-align: center; font-size: 16px; font-weight: bold; padding: 10px;">
                                        深圳市龙岗区机关幼儿园新生报名登记表
                                    </td>
                                </tr>
                                <tr>
                                    <td width="7%" rowspan="7" class="lttl">
                                        幼儿<br />
                                        情况
                                    </td>
                                    <td width="7%" class="lttl">
                                        姓名
                                    </td>
                                    <td width="16%">
                                        <asp:TextBox ID="txtUserName" runat="server" MaxLength="50" CssClass="inputWidthaAoto"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUserName"
                                            ErrorMessage="姓名必填写！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                                    </td>
                                    <td width="7%" class="lttl">
                                        性别
                                    </td>
                                    <td width="16%">
                                        <asp:RadioButtonList ID="rblSex" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                            <asp:ListItem Text="男" Value="1"></asp:ListItem>
                                            <asp:ListItem Text="女" Value="0"></asp:ListItem>
                                        </asp:RadioButtonList>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="rblSex"
                                            ErrorMessage="性别必须选项！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                                    </td>
                                    <td width="7%" class="lttl">
                                        出生<br />
                                        日期
                                    </td>
                                    <td width="16%">
                                        <asp:TextBox ID="calBirthday" MaxLength="12" runat="server" CssClass="inputWidthaAoto"></asp:TextBox>
                                        <asp:CompareValidator ID="CompareValidator3" runat="server" ControlToValidate="calBirthday"
                                            ErrorMessage="出生日期格式不对" Operator="DataTypeCheck" Type="Date" Display="None" ForeColor="#FF0066"></asp:CompareValidator>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="calBirthday"
                                            ErrorMessage="出生日期必填写！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                                    </td>
                                    <td colspan="2" rowspan="5" class="lttl">
                                        &nbsp;贴照片
                                    </td>
                                </tr>
                                <tr>
                                    <td class="lttl">
                                        籍贯
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtPlaceOrigin" MaxLength="200" runat="server" CssClass="inputWidthaAoto"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtPlaceOrigin"
                                            ErrorMessage="籍贯必填写！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                                    </td>
                                    <td class="lttl">
                                        出生地
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtPlaceBirth" MaxLength="200" runat="server" CssClass="inputWidthaAoto"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtPlaceBirth"
                                            ErrorMessage="出生地必填写！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                                    </td>
                                    <td class="lttl">
                                        申请<br />
                                        班级
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="rblClass" runat="server"  RepeatDirection="Horizontal"
                                            RepeatLayout="Flow">
                                        </asp:DropDownList>
                                        <asp:HiddenField ID="hfClassID" runat="server" />
                                         <asp:HiddenField ID="hfClass" runat="server" />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="rblClass"
                                            ErrorMessage="申请班级必选择！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="lttl">
                                        户籍<br />
                                        类别
                                    </td>
                                    <td colspan="5">
                                        <asp:RadioButtonList ID="rblCensusClass" runat="server" RepeatColumns="8" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                        </asp:RadioButtonList>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="rblCensusClass"
                                            ErrorMessage="户籍类型必选项！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="lttl">
                                        儿童身<br />
                                        份证号
                                    </td>
                                    <td colspan="5">
                                        <asp:TextBox ID="txtIdCardNo" MaxLength="20" runat="server" CssClass="inputWidthaAoto"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtIdCardNo"
                                            ErrorMessage="儿童身份证号必填写！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="lttl">
                                        户口<br />
                                        所在地
                                    </td>
                                    <td colspan="5">
                                        <asp:TextBox ID="txtCensusProvince" MaxLength="50" runat="server" CssClass="inputWidth50"></asp:TextBox>省
                                        <asp:TextBox ID="txtCensusCity" MaxLength="50" runat="server" CssClass="inputWidth50"></asp:TextBox>市
                                        <asp:TextBox ID="txtCensusArea" MaxLength="50" runat="server" CssClass="inputWidth50"></asp:TextBox>区（县）
                                        <asp:TextBox ID="txtCensusPoliceStation" MaxLength="200" runat="server" CssClass="inputWidth100"></asp:TextBox>派出所
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtCensusProvince"
                                            ErrorMessage="户口必所在的省必填写！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="txtCensusCity"
                                            ErrorMessage="户口必所在的市必填写！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server" ControlToValidate="txtCensusArea"
                                            ErrorMessage="户口必所在的区（县）必填写！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server" ControlToValidate="txtCensusPoliceStation"
                                            ErrorMessage="户口必所在的派出所必填写！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="lttl">
                                        是否上<br />
                                        过幼儿园
                                    </td>
                                    <td>
                                        <asp:RadioButtonList ID="rbtIsInSchool" runat="server" RepeatDirection="Horizontal"
                                            RepeatLayout="Flow">
                                            <asp:ListItem Text="是" Value="1"></asp:ListItem>
                                            <asp:ListItem Text="否" Value="0"></asp:ListItem>
                                        </asp:RadioButtonList>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="rbtIsInSchool"
                                            ErrorMessage="是否上过幼儿园必选项！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                                    </td>
                                    <td colspan="6">
                                        曾上过：<asp:TextBox ID="txtHadInSchool" MaxLength="200" runat="server" CssClass="inputWidth200"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="lttl">
                                        有无<br />
                                        过敏史
                                    </td>
                                    <td colspan="3">
                                        <asp:TextBox ID="txtAllergicHistory" MaxLength="200" runat="server" CssClass="inputWidth100"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator20" runat="server" ControlToValidate="txtAllergicHistory"
                                            ErrorMessage="是否有过敏史必选项！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                                    </td>
                                    <td class="lttl">
                                        特殊<br />
                                        疾病
                                    </td>
                                    <td colspan="3">
                                        <asp:TextBox ID="txtSepcialDisease" MaxLength="200" runat="server" CssClass="inputWidth100"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator21" runat="server" ControlToValidate="txtSepcialDisease"
                                            ErrorMessage="是否有特殊疾病必选项！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td rowspan="3" class="lttl">
                                        在深<br />
                                        居住<br />
                                        情况
                                    </td>
                                    <td class="lttl">
                                        住房<br />
                                        性质
                                    </td>
                                    <td colspan="2">
                                        <asp:DropDownList ID="rbtHouseNature" runat="server" RepeatDirection="Horizontal"
                                            RepeatLayout="Flow">
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="rbtHouseNature"
                                            ErrorMessage="住房性质必选项！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                                    </td>
                                    <td  colspan="2" class="lttl">
                                        <asp:Label ID="labNoteNO" runat="server" Text="不动产登记号"></asp:Label>
                                    </td>
                                    <td colspan="3">
                                        <asp:TextBox ID="TxtNoteNo" MaxLength="200" runat="server" CssClass="inputWidth200"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="lttl">
                                        家庭<br />
                                        住址
                                    </td>
                                    <td colspan="7">
                                        <asp:DropDownList ID="rbtHouseRegion" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow"></asp:DropDownList>
                                        <asp:DropDownList ID="rbtHouseGroup" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" ></asp:DropDownList>
                                        <asp:DropDownList ID="rbtHouseNumber" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow"></asp:DropDownList>
                                        <asp:DropDownList ID="rbtHouseNumber1" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow"></asp:DropDownList>
                                        <asp:DropDownList ID="rbtHouseNumber2" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow"></asp:DropDownList>
                                        <asp:HiddenField ID="hfHouseRegionID" runat="server" />
                                        <asp:HiddenField ID="hfHouseGroupID" runat="server" />
                                        <asp:HiddenField ID="hfHouseNumberID" runat="server" />
                                        <asp:HiddenField ID="hfHouseNumberID1" runat="server" />
                                        <asp:HiddenField ID="hfHouseNumberID2" runat="server" />
                                        <asp:HiddenField ID="hfHouseRegion" runat="server" />
                                        <asp:HiddenField ID="hfHouseGroup" runat="server" />
                                        <asp:HiddenField ID="hfHouseNumber" runat="server" />
                                        <asp:HiddenField ID="hfHouseNumber1" runat="server" />
                                        <asp:HiddenField ID="hfHouseNumber2" runat="server" />
                                        <asp:TextBox ID="txtHouseAddr" MaxLength="200" runat="server" CssClass="inputWidth400"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="lttl">
                                        住房<br />
                                        时间
                                    </td>
                                    <td colspan="7">
                                    <div id="calBuyDiv">
                                        购房时间（
                                            <asp:TextBox ID="calBuyHouseDate" MaxLength="12" runat="server" CssClass="inputWidth100"></asp:TextBox>）
                                            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="calBuyHouseDate"
                                                ErrorMessage="购房时间格式不对" Operator="DataTypeCheck" Type="Date" Display="None" ForeColor="#FF0066"></asp:CompareValidator>
                                    </div>
                                    </td>
                                </tr>
                                <tr style="text-align: center;">
                                    <td rowspan="5" class="lttl">
                                        父母<br />
                                        情况
                                    </td>
                                    <td class="lttl">
                                        关系
                                    </td>
                                    <td>
                                        姓名
                                    </td>
                                    <td colspan="3">
                                        工作单位
                                    </td>
                                    <td width="11%">
                                        是否深户
                                    </td>
                                    <td width="12%">
                                        是否缴纳社保
                                    </td>
                                    <td width="12%">
                                        是否办理<br />深圳市居住证
                                    </td>
                                </tr>
                                <tr>
                                    <td class="lttl">
                                        父亲
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtFatherName" MaxLength="50" runat="server" CssClass="inputWidthaAoto"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator22" runat="server" ControlToValidate="txtFatherName"
                                            ErrorMessage="父亲姓名必填写！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                                    </td>
                                    <td colspan="3">
                                        <asp:TextBox ID="txtFatherWorks" MaxLength="200" runat="server" CssClass="inputWidthaAoto"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator23" runat="server" ControlToValidate="txtFatherWorks"
                                            ErrorMessage="父亲工作单位必填写！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                                    </td>
                                    <td>
                                        <asp:RadioButtonList ID="rblFatherInSZ" runat="server" RepeatDirection="Horizontal"
                                            RepeatLayout="Flow">
                                            <asp:ListItem Text="是" Value="1" Selected="True"></asp:ListItem>
                                            <asp:ListItem Text="否" Value="0"></asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                    <td>
                                        <asp:RadioButtonList ID="rblFatherPaySB" runat="server" RepeatDirection="Horizontal"
                                            RepeatLayout="Flow">
                                            <asp:ListItem Text="是" Value="1" Selected="True"></asp:ListItem>
                                            <asp:ListItem Text="否" Value="0"></asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                    <td>
                                        <asp:RadioButtonList ID="rblFatherPayJZZ" runat="server" RepeatDirection="Horizontal"
                                            RepeatLayout="Flow">
                                            <asp:ListItem Text="是" Value="1"></asp:ListItem>
                                            <asp:ListItem Text="否" Value="0"></asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="lttl">
                                        母亲
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtMotherName" MaxLength="50" runat="server" CssClass="inputWidthaAoto"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator24" runat="server" ControlToValidate="txtMotherName"
                                            ErrorMessage="母亲姓名必填写！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                                    </td>
                                    <td colspan="3">
                                        <asp:TextBox ID="txtMotherWorks" MaxLength="200" runat="server" CssClass="inputWidthaAoto"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator25" runat="server" ControlToValidate="txtMotherWorks"
                                            ErrorMessage="母亲工作单位必填写！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                                    </td>
                                    <td>
                                        <asp:RadioButtonList ID="rblMotherInSZ" runat="server" RepeatDirection="Horizontal"
                                            RepeatLayout="Flow">
                                            <asp:ListItem Text="是" Value="1" Selected="True"></asp:ListItem>
                                            <asp:ListItem Text="否" Value="0"></asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                    <td>
                                        <asp:RadioButtonList ID="rblMotherPaySB" runat="server" RepeatDirection="Horizontal"
                                            RepeatLayout="Flow">
                                            <asp:ListItem Text="是" Value="1" Selected="True"></asp:ListItem>
                                            <asp:ListItem Text="否" Value="0"></asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                    <td>
                                        <asp:RadioButtonList ID="rblMotherPayJZZ" runat="server" RepeatDirection="Horizontal"
                                            RepeatLayout="Flow">
                                            <asp:ListItem Text="是" Value="1"></asp:ListItem>
                                            <asp:ListItem Text="否" Value="0"></asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                                <tr>
                                  <td class="lttl">
                                  		父亲身<br />
                                        份证号</td>
                                  <td colspan="4">
                                  		<asp:TextBox ID="txtFatherCardNo" MaxLength="20" runat="server" CssClass="inputWidthaAoto"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator26" runat="server" ControlToValidate="txtFatherCardNo"
                                            ErrorMessage="父亲身份证号必填写！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                                  </td>
                                  <td class="lttl">联系电话</td>
                                  <td colspan="2">
                                        <asp:TextBox ID="txtFatherTel" MaxLength="50" runat="server" CssClass="inputWidthaAoto"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator27" runat="server" ControlToValidate="txtFatherTel"
                                            ErrorMessage="父亲联系电话必填写！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                                  </td>
                                </tr>
                                <tr>
                                  <td class="lttl">
                                  		母亲身<br />
                                        份证号
                                  </td>
                                  <td colspan="4">
                                  		<asp:TextBox ID="txtMotherCardNo" MaxLength="20" runat="server" CssClass="inputWidthaAoto"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator28" runat="server" ControlToValidate="txtMotherCardNo"
                                            ErrorMessage="母亲身份证号必填写！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                                  </td>
                                  <td class="lttl">联系电话</td>
                                  <td colspan="2">
                                        <asp:TextBox ID="txtMotherTel" MaxLength="50" runat="server" CssClass="inputWidthaAoto"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator29" runat="server" ControlToValidate="txtMotherTel"
                                            ErrorMessage="母亲联系电话必填写！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                                  </td>
                                </tr>
                                <tr>
                                    <td colspan="2" class="lttl">
                                        家庭计划<br />
                                        生育情况
                                    </td>
                                    <td colspan="7">
                                        <asp:RadioButtonList ID="rbtPlanning" runat="server" RepeatDirection="Horizontal"
                                            RepeatLayout="Flow">
                                        </asp:RadioButtonList>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ControlToValidate="rbtPlanning"
                                            ErrorMessage="家庭计划生育情况必选项！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                               
                                <tr>
                                  <td class="lttl" colspan="2">入读幼儿园</td>
                                  <td colspan="7"><p>您选择让孩子入读的幼儿园（单选）： <br />
                                        <asp:RadioButtonList ID="rbtNurserySchool" runat="server" RepeatDirection="Horizontal"
                                            RepeatLayout="Flow" AutoPostBack="true" OnSelectedIndexChanged="rbtNurserySchool_OnSelectedIndexChanged">
                                        </asp:RadioButtonList>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" ControlToValidate="rbtNurserySchool"
                                            ErrorMessage="入读幼儿园必选项！" Display="None" ForeColor="#FF0066"></asp:RequiredFieldValidator>
                                  </td>
                                </tr>
                                <tr>
                                    <td class="lttl" colspan="2">
                                        备注
                                    </td>
                                    <td colspan="7">
                                        <asp:TextBox ID="txtNotes" runat="server" TextMode="MultiLine"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        &nbsp;
                                    </td>
                                    <td colspan="7" style="font-weight: bold; font-size: 14px;">
                                        本人保证以上信息准确无误，如有虚假信息，责任自负。
                                        <p>
                                        </p>
                                        <div style="width: 100%;">
                                            <div style="padding-left: 400px;">
                                                家长签名：<asp:TextBox ID="txtSignName" MaxLength="50" runat="server" CssClass="inputWidth100"></asp:TextBox></div>
                                        </div>
                                        <div style="width: 100%;">
                                            <div style="padding-left: 400px;">
                                                填表时间：<asp:TextBox ID="txtSignDate" MaxLength="50" runat="server" CssClass="inputWidth100"
                                                    ReadOnly="true"></asp:TextBox></div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                            </table>
                            <!------------------------------编辑内容区域---------------------------------------------->
                        </div>
                        <div style="width: 749px; text-align: center; padding: 10px 0px;">
                            <asp:HiddenField ID="hfSelectId" runat="server" />
                            <asp:Button ID="btnSubmit" runat="server" Text="保存报名表" OnClick="btnSubmit_Click" />
                        </div>
                        <div style="width: 749px;">
                            <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
                        </div>
                    </div>
                    <div class="n-m-f">
                        <div class="n-m-fl">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
<script language="javascript" type="text/javascript">
    var loadUrl = '';
    var hr = '<%=hfHouseRegion.Value %>';
    var hg = '<%=hfHouseGroup.Value %>';
    var hn = '<%=hfHouseNumber.Value %>';
    var hn1 = '<%=hfHouseNumber1.Value %>';
    var hn2 = '<%=hfHouseNumber2.Value %>';
    $(function () {
        var nature = $("#<%=rbtHouseNature.ClientID %>").val();
        loadUrl = "/Basic/LoadHouseInfo.ashx?F=" + $("#<%=rbtNurserySchool.ClientID %>").val(); 
        
        if (nature == "1" ) {
            setVisibleTxt(false);
        } else {
            setVisibleTxt(true);
        }
        $("#<%=rbtHouseNature.ClientID %>").change(loadHouseNature);
        $("#<%=rbtHouseRegion.ClientID %>").change(loadGroup);
        $("#<%=rbtHouseGroup.ClientID %>").change(loadNumber);
        $("#<%=rbtHouseNumber.ClientID %>").change(loadNumberSub);
        $("#<%=rbtHouseNumber1.ClientID %>").change(setShowTxtValue);
        $("#<%=rbtHouseNumber2.ClientID %>").change(setShowTxtValue);
        //loadShowBox();
        //loadGroup();
        setValue();
    });

    function loadHouseNature() {
        var nature = $("#<%=rbtHouseNature.ClientID %>").val();
        if (nature == "1") {
               setVisibleTxt(false);
               var url = loadUrl + "&ty=1";
               $("#<%=rbtHouseRegion.ClientID %>").load(url, '', loadGroup);
              
               if ($("#<%=calBuyHouseDate.ClientID %>").val() == "") {
                   $("#<%=calBuyHouseDate.ClientID %>").focus();
                }
        }else {
            setVisibleTxt(true);
        }
        setShowTxtValue();
    }

    function loadGroup() {
        $("#<%=rbtHouseGroup.ClientID %>").closest();
        if ($("#<%=rbtHouseRegion.ClientID %>").val() != "other") {
            $("#<%=rbtHouseNumber.ClientID %>").show();
            $("#<%=rbtHouseNumber1.ClientID %>").show();
            $("#<%=rbtHouseNumber2.ClientID %>").show();
            $("#<%=rbtHouseGroup.ClientID %>").show();
            $("#<%=txtHouseAddr.ClientID %>").hide();
            var url = loadUrl + "&ty=2&rID=" + $("#<%=rbtHouseRegion.ClientID %>").val();
            $("#<%=rbtHouseGroup.ClientID %>").load(url, '', loadNumber);
        } else {
            $("#<%=rbtHouseNumber.ClientID %>").hide();
            $("#<%=rbtHouseNumber1.ClientID %>").hide();
            $("#<%=rbtHouseNumber2.ClientID %>").hide();
            $("#<%=rbtHouseGroup.ClientID %>").hide();
            $("#<%=txtHouseAddr.ClientID %>").show();
        }
        setShowTxtValue();
    }

    function loadNumber() {
        $("#<%=rbtHouseNumber.ClientID %>").closest();
        var url = loadUrl + "&ty=3&t=0&gID=" + $("#<%=rbtHouseGroup.ClientID %>").val();
        $("#<%=rbtHouseNumber.ClientID %>").load(url, '', loadNumberSub);
        setShowTxtValue();
    }

    function loadNumberSub() {
        $("#<%=rbtHouseNumber1.ClientID %>").closest();
        $("#<%=rbtHouseNumber2.ClientID %>").closest();
        url = loadUrl + "&ty=3&t=1&gID=" + $("#<%=rbtHouseGroup.ClientID %>").val();
        url += "&nID=" + $("#<%=rbtHouseNumber.ClientID %>").val();
        $("#<%=rbtHouseNumber1.ClientID %>").load(url);
        url = loadUrl + "&ty=3&t=2&gID=" + $("#<%=rbtHouseGroup.ClientID %>").val();
        url += "&nID=" + $("#<%=rbtHouseNumber.ClientID %>").val();
        $("#<%=rbtHouseNumber2.ClientID %>").load(url);
        setShowTxtValue();
    }
    
    function setVisibleTxt(isVisible) {
        if (isVisible) {
            $("#<%=rbtHouseNumber.ClientID %>").hide();
            $("#<%=rbtHouseNumber1.ClientID %>").hide();
            $("#<%=rbtHouseNumber2.ClientID %>").hide();
            $("#<%=rbtHouseGroup.ClientID %>").hide();
            $("#<%=rbtHouseRegion.ClientID %>").hide();
            $("#<%=txtHouseAddr.ClientID %>").show();
            $("#<%=labNoteNO.ClientID %>").hide();
            $("#<%=TxtNoteNo.ClientID %>").hide();
            $("#<%=labNoteNO.ClientID %>").val();
            $("#<%=TxtNoteNo.ClientID %>").val();
            $("#calBuyDiv").hide();
        }
        else {
            $("#<%=txtHouseAddr.ClientID %>").hide();
            $("#<%=rbtHouseGroup.ClientID %>").show();
            $("#<%=rbtHouseNumber.ClientID %>").show();
            $("#<%=rbtHouseNumber1.ClientID %>").show();
            $("#<%=rbtHouseNumber2.ClientID %>").show();
            $("#<%=rbtHouseRegion.ClientID %>").show();
            $("#<%=labNoteNO.ClientID %>").show();
            $("#<%=TxtNoteNo.ClientID %>").show();
            $("#calBuyDiv").show();
            
        }
    }
    function loadShowBox() {
        var nature = $("#<%=rbtHouseNature.ClientID %>").val();
        if (nature == "1") {
            $("#<%=txtHouseAddr.ClientID %>").hide();
        } else {
            $("#<%=txtHouseAddr.ClientID %>").show();
           }
    }

    function setShowTxtValue() {
        $("#<%=hfHouseRegionID.ClientID %>").val($("#<%=rbtHouseRegion.ClientID %>").val());
        $("#<%=hfHouseRegion.ClientID %>").val($("#<%=rbtHouseRegion.ClientID %>").find("option:selected").text());
        $("#<%=hfHouseGroupID.ClientID %>").val($("#<%=rbtHouseGroup.ClientID %>").val());
        $("#<%=hfHouseGroup.ClientID %>").val($("#<%=rbtHouseGroup.ClientID %>").find("option:selected").text());
        $("#<%=hfHouseNumberID.ClientID %>").val($("#<%=rbtHouseNumber.ClientID %>").val());
        $("#<%=hfHouseNumber.ClientID %>").val($("#<%=rbtHouseNumber.ClientID %>").find("option:selected").text());
        $("#<%=hfHouseNumberID1.ClientID %>").val($("#<%=rbtHouseNumber1.ClientID %>").val());
        $("#<%=hfHouseNumber1.ClientID %>").val($("#<%=rbtHouseNumber1.ClientID %>").find("option:selected").text());
        $("#<%=hfHouseNumberID2.ClientID %>").val($("#<%=rbtHouseNumber2.ClientID %>").val());
        $("#<%=hfHouseNumber2.ClientID %>").val($("#<%=rbtHouseNumber2.ClientID %>").find("option:selected").text());
        $("#<%=hfClassID.ClientID %>").val($("#<%=rblClass.ClientID %>").val());
        $("#<%=hfClass.ClientID %>").val($("#<%=rblClass.ClientID %>").find("option:selected").text());
    }
    function setValue() {
        if (hr)
            $("#<%=rbtHouseRegion.ClientID %>").val(hr);
        if(hg)
            $("#<%=rbtHouseGroup.ClientID %>").val(hg);
        if(hn)
            $("#<%=rbtHouseNumber.ClientID %>").val(hn);
        if(hn1)
            $("#<%=rbtHouseNumber1.ClientID %>").val(hn1);
        if(hn2)
            $("#<%=rbtHouseNumber2.ClientID %>").val(hn2); 

    }
</script>
</asp:Content>
